// 该文件专门用于创建整个应用的路由器
import VueRouter from "vue-router";
//引入组件
import About from "../components/About";
import Home from "../components/Home";

//创建并暴露一个路由器
export default new VueRouter({
  //一组组路由
  routes: [
    {
      path: "/about", //路径
      component: About, //组件
    },
    {
      path: "/home",
      component: Home,
    },
  ],
});
